﻿@model ITProject.WebUI.Models.Project.ProjectCreateViewModel

@{
    ViewBag.Title = "Nowy Projekt";
    Layout = "~/Views/Shared/_Layout.cshtml";
}



<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Create","Project",FormMethod.Post,new { enctype = "multipart/form-data" }))
{
    <fieldset>
    <legend>Tworzenie nowego projektu</legend>
    <div class="editor">
       <div class="editor-label">
           @Html.LabelFor(model => model.Name) <span class="validation">*</span>
       </div>
       <div class="editor-field">
       <p class="validation">@Html.ValidationMessageFor(model => model.Name)</p>
           @Html.TextBoxFor(model => model.Name, new { @class = "input" })
           
       </div>
    </div>
        <div class="editor">
       <div class="editor-label">
           @Html.LabelFor(model => model.ShortDescription) <span class="validation">*</span>
       </div>
       <div class="editor-field">
       <p class="validation">@Html.ValidationMessageFor(model => model.ShortDescription)</p>
           @Html.TextAreaFor(model => model.ShortDescription, new { @class = "input" })
           
       </div>
    </div>
    <div class="editor">
       <div class="editor-label">
           @Html.LabelFor(model => model.Description) <span class="validation">*</span>
       </div>
       <div class="editor-field">
       <p class="validation">@Html.ValidationMessageFor(model => model.Description)</p>
           @Html.TextAreaFor(model => model.Description, new { @class = "input" })
           
       </div>
    </div>
    <div class="editor">
       <div class="editor-label">
           @Html.LabelFor(model => model.Logo)
       </div>
       <div class="editor-field">
       <p class="validation">@Html.ValidationMessageFor(model => model.Logo) </p>
            <input type="file" name="Logo" id="Logo"/> 
            
       </div>
      </div>
      <p class="validation" style="padding:10px">* pole musi być podane</p>

       <div class="DSubmit">
           <input type="reset" value="Wyczyść" class="button"/>
           <input type="submit" value="Utwórz" class="button"/>
       </div>
       </fieldset>
}


